jun.BiayaSalesLainstore = Ext.extend(Ext.data.JsonStore, {
    constructor: function (cfg) {
        cfg = cfg || {};
        jun.BiayaSalesLainstore.superclass.constructor.call(this, Ext.apply({
            storeId: 'BiayaSalesLainStoreId',
            url: 'BiayaSalesLain',
            autoLoad: !1,
            autoSave: !1,
            root: 'results',
            totalProperty: 'total',
            fields: [
                {name: 'biaya_sales_lain_id'},
                {name: 'biaya_sales_id'},
                {name: 'amount', type: 'float'},
                {name: 'account_code'},
                {name: 'nama_biaya'}
            ]
        }, cfg));
    },
    refreshData: function (a) {
        var makan = parseFloat(Ext.getCmp("makanid").getValue());
        var bbm = parseFloat(Ext.getCmp("bbmid").getValue());
        var parkir = parseFloat(Ext.getCmp("parkirid").getValue());
        var subtotal = this.sum("amount");
        Ext.getCmp("totalbiayasalesid").setValue(subtotal + makan + bbm + parkir);
    }
});
jun.rztBiayaSalesLain = new jun.BiayaSalesLainstore();
//jun.rztBiayaSalesLain.load();
